package net.sourceforge.peers.gui;

import javax.swing.JPanel;

import javazoom.jl.decoder.JavaLayerException;
import javazoom.jl.player.Player;
import net.sourceforge.peers.Logger;
import net.sourceforge.peers.sip.AbstractState;
import net.sourceforge.peers.sip.transport.SipResponse;

import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.io.FileNotFoundException;

/**
 * callFrame状态机
 * @author Mr.Yan
 */
public abstract class CallFrameState extends AbstractState {


    protected CallFrame callFrame;
    protected JPanel callPanel;

    public CallFrameState(String id, CallFrame callFrame, Logger logger) {
        super(id, logger);
        this.callFrame = callFrame;
        String filename = "D://music.mp3";//文件路径


    }

    //拨打电话
    public void callClicked() {}
    //接听来电
    public void incomingCall() {}
    //拨打按钮按下
    public void calleePickup() {}
    //错误状态
    public void error(SipResponse sipResponse) {}
    //接听按钮按下
    public void pickupClicked() {}
    //忙碌按钮按下
    public void busyHereClicked() {}
    //挂断按钮按下
    public void hangupClicked() {}
    //对方挂断
    public void remoteHangup() {}
    //关闭callFrame窗口
    public void closeClicked() {}
    //正在响铃
    public void ringing() {}
    
}
